package com.fengchao.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

import java.util.Date;

@Mapper
public interface CfiConcertCrowdfundingSingalMapper {

    /**
     * 更新众筹已结束 修改为下架状态
     *
     * @param date
     * @return
     */
    @Update("update cfi_concert_crowdfunding_singal set is_cancel=1 where crowdfunding_end_time< #{date} and is_cancel=0")
    Integer updateCrowdfundingCancel(Date date);

}